# This is a CMake example for Python

FIND_PACKAGE(SWIG REQUIRED)
INCLUDE(${SWIG_USE_FILE})
SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} /D__WIN32__)

SET(KINECT_SRCS ../Kinect-Driver.cpp ../Kinect-FrameInput.cpp ../Kinect-Utility.cpp ../Kinect-win32.cpp)

FIND_PACKAGE(PythonLibs)
INCLUDE_DIRECTORIES("C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include"
					"C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\Include")
INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_PATH})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})

SET(CMAKE_SWIG_FLAGS "-cpperraswarn")

SET_SOURCE_FILES_PROPERTIES(kinect.i PROPERTIES CPLUSPLUS ON)
SET_SOURCE_FILES_PROPERTIES(kinect.i PROPERTIES SWIG_FLAGS "-includeall")
SWIG_ADD_MODULE(kinect python kinect.i ${KINECT_SRCS})
SWIG_LINK_LIBRARIES(kinect ${PYTHON_LIBRARIES})

